package com.netty.db.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2022-02-18
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("table_lamp")
public class TableLamp {

    /**
     * 物理地址
     */
    @TableId(value = "mac", type = IdType.AUTO)
    private String mac;

    /**
     * 开关 0: 开 1: 关
     */
    @TableField("switches")
    private Boolean switches;

    /**
     * 亮度 1-10
     */
    @TableField("brightness")
    private Byte brightness;


}
